Xbasic
ColorDefinition.Blend Function
Syntax
color1.Blend as v(color as Alpha5::ColorDefinition[,ratio as n])
Arguments
- color1
An initial color definition.
- color
An second color definition.
- ratio
The ratio of Color to apply to ColorDefinition to modify ColorDefinition.
Description
Mix two colors together, optional ratio > 0.0, ratio < 1.0 (.5 if not specified).
Discussion
The .Blend() method modifies Color1 by blending it with Color2 in the proportions specified by Ratio.
Example
dim c1 as colordefinition dim c2 as colordefinition c1.Name = "Red" c2.Name = "Blue" c1.Blend(c2,.5) ? c1 = Blue = 127 Green = 0 HTML_Name = "#7f007f" Hue = 300 Luminance = 24.902 Name = "#127,0,127" Red = 127 RGB_Value = 8323199 Saturation = 100
See Also